﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CoreCms.Net.DTO.WeChatShipping
{
    /// <summary>
    /// 发货信息录入接口提交参数
    /// </summary>
    public class OrderShippingCreatePost
    {
        /// <summary>
        /// 同城配送快递编码
        /// </summary>
        public string? cityDistributionName { get; set; }
        /// <summary>
        /// 同城配送快递单号
        /// </summary>
        public string? cityDistributionNumber { get; set; }

        /// <summary>
        /// 是否全部发货
        /// </summary>
        public bool is_all_delivered { get; set; } = false;

        /// <summary>
        /// 商品信息
        /// </summary>
        public string item_desc { get; set; }

        /// <summary>
        /// 发货类型
        /// </summary>
        public int logistics_type { get; set; }

        /// <summary>
        /// 交易单号
        /// </summary>
        public string transaction_id { get; set; }

        /// <summary>
        /// 物流信息
        /// </summary>
        public List<ShippingList>? shipping_list { get; set; }

        /// <summary>
        /// openid
        /// </summary>
        public string openid { get; set; }

        /// <summary>
        /// 商户号
        /// </summary>
        public string merchant_id { get; set; }

        /// <summary>
        /// 商家订单编号
        /// </summary>
        public string merchant_trade_no { get; set; }


    }

    public class ShippingList
    {
        /// <summary>
        /// 快递公司名称
        /// </summary>
        public string express_company { get; set; }

        /// <summary>
        /// 快递单号
        /// </summary>
        public string tracking_no { get; set; }

    }

}
